package com.ruoyi.bbsAdmin.domain.vo;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 内容帖对象+昵称 content +nickname
 *
 * @author ruoyi
 * @date 2022-10-11
 */
public class contentVo implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    private String contentid;

    /** 发帖人id */
    @Excel(name = "发帖人id")
    private String userid;

    /** 发帖人昵称 */
    private String nickname;

    private String anonymousName;

    private String headImgUrl;

    /** 板块id */
    @Excel(name = "板块id")
    private String plateid;

    /** 帖子所属学校id */
    @Excel(name = "帖子所属学校id")
    private Integer schoolid;

    /** 标题名 */
    @Excel(name = "标题名")
    private String title;

    /** 帖子的文字内容 */
    @Excel(name = "帖子的文字内容")
    private String contenttext;

    /** 帖子的图片内容 */
    @Excel(name = "帖子的图片内容")
    private String contenturl;

    /** 发帖地点 */
    @Excel(name = "发帖地点")
    private String place;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Integer upnum;

    /** “踩”数 */
    @Excel(name = "“踩”数")
    private Integer downnum;

    /** 评论数 */
    @Excel(name = "评论数")
    private Integer commentnum;

    /** 转发数 */
    @Excel(name = "转发数")
    private Integer forwardnum;

    /** 阅读量 */
    @Excel(name = "真实阅读人数")
    private Integer realreadnum;

    /** 阅读量 */
    @Excel(name = "阅读量")
    private Integer readnum;

    /** 举报数量 */
    @Excel(name = "举报数量")
    private Integer informnum;

    /** 特殊类型标识 */
    @Excel(name = "特殊类型标识")
    private Integer isspecial;

    /** 帖子可见范围：0：校内；1:板块内；2:校内外 */
    @Excel(name = "帖子可见范围：0：校内；1:板块内；2:校内外")
    private Integer visiblerange;

    /** 帖子状态。0：正常；1：折叠展示；2：置顶；3：需要审核；4：已下架；5：举报； */
    @Excel(name = "帖子状态。0：正常；1：折叠展示；2：置顶；3：需要审核；4：已下架；5：举报；")
    private Integer contentstate;

    /** 帖子类型。0：普通贴；1：投票贴；2：视频贴； */
    @Excel(name = "帖子类型。0：普通贴；1：投票贴；2：视频贴；")
    private Integer contenttype;

    /** 不可评论状态。0：可评论；1：不可评论 */
    @Excel(name = "不可评论状态。0：可评论；1：不可评论")
    private Integer nocomment;

    /** 仅校友可见状态。0：非仅校友可见；1：仅校友可见 */
    @Excel(name = "仅校友可见状态。0：非仅校友可见；1：仅校友可见")
    private Integer alumnionly;

    /** 对应到vote表中的项 */
    @Excel(name = "对应到vote表中的项")
    private String voteid;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createtime;

    /** 更新时间 */
    @Excel(name = "更新时间")
    private Date updatetime;

    private String schoolIdStr;

    public void setContentid(String contentid)
    {
        this.contentid = contentid;
    }

    public String getContentid()
    {
        return contentid;
    }
    public void setUserid(String userid)
    {
        this.userid = userid;
    }

    public String getUserid()
    {
        return userid;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }
    public String getNickname()
    {
        return nickname;
    }

    public void setHeadImgUrl(String headImgUrl)
    {
        this.headImgUrl = headImgUrl;
    }
    public String getHeadImgUrl()
    {
        return headImgUrl;
    }

    public void setAnonymousName(String anonymousName)
    {
        this.anonymousName = anonymousName;
    }
    public String getAnonymousName()
    {
        return anonymousName;
    }


    public void setPlateid(String plateid)
    {
        this.plateid = plateid;
    }

    public String getPlateid()
    {
        return plateid;
    }
    public void setSchoolid(Integer schoolid)
    {
        this.schoolid = schoolid;
    }

    public Integer getSchoolid()
    {
        return schoolid;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContenttext(String contenttext)
    {
        this.contenttext = contenttext;
    }

    public String getContenttext()
    {
        return contenttext;
    }
    public void setContenturl(String contenturl)
    {
        this.contenturl = contenturl;
    }

    public String getContenturl()
    {
        return contenturl;
    }
    public void setPlace(String place)
    {
        this.place = place;
    }

    public String getPlace()
    {
        return place;
    }
    public void setUpnum(Integer upnum)
    {
        this.upnum = upnum;
    }

    public Integer getUpnum()
    {
        return upnum;
    }
    public void setDownnum(Integer downnum)
    {
        this.downnum = downnum;
    }

    public Integer getDownnum()
    {
        return downnum;
    }
    public void setCommentnum(Integer commentnum)
    {
        this.commentnum = commentnum;
    }

    public Integer getCommentnum()
    {
        return commentnum;
    }
    public void setForwardnum(Integer forwardnum)
    {
        this.forwardnum = forwardnum;
    }


    public Integer getForwardnum()
    {
        return forwardnum;
    }
    public void setRealreadnum(Integer realreadnum)
    {
        this.realreadnum = realreadnum;
    }

    public Integer getRealreadnum()
    {
        return realreadnum;
    }
    public void setReadnum(Integer readnum)
    {
        this.readnum = readnum;
    }

    public Integer getReadnum()
    {
        return readnum;
    }
    public void setInformnum(Integer informnum)
    {
        this.informnum = informnum;
    }

    public Integer getInformnum()
    {
        return informnum;
    }
    public void setIsspecial(Integer isspecial)
    {
        this.isspecial = isspecial;
    }

    public Integer getIsspecial()
    {
        return isspecial;
    }
    public void setVisiblerange(Integer visiblerange)
    {
        this.visiblerange = visiblerange;
    }

    public Integer getVisiblerange()
    {
        return visiblerange;
    }
    public void setContentstate(Integer contentstate)
    {
        this.contentstate = contentstate;
    }

    public Integer getContentstate()
    {
        return contentstate;
    }
    public void setContenttype(Integer contenttype)
    {
        this.contenttype = contenttype;
    }

    public Integer getContenttype()
    {
        return contenttype;
    }
    public void setNocomment(Integer nocomment) { this.nocomment = nocomment; }

    public Integer getNocomment() { return nocomment; }
    public void setAlumnionly(Integer alumnionly) { this.alumnionly = alumnionly; }

    public Integer getAlumnionly() { return alumnionly; }
    public void setVoteid(String voteid)
    {
        this.voteid = voteid;
    }

    public String getVoteid()
    {
        return voteid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }


    public void setSchoolIdStr(String schoolIdStr)
    {
        this.schoolIdStr = schoolIdStr;
    }
    public String getSchoolIdStr()
    {
        return schoolIdStr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("contentid", getContentid())
                .append("userid", getUserid())
                .append("nickname", getNickname())
                .append("headImgUrl",getHeadImgUrl())
                .append("anonymousName",getAnonymousName())
                .append("plateid", getPlateid())
                .append("schoolid", getSchoolid())
                .append("title", getTitle())
                .append("contenttext", getContenttext())
                .append("contenturl", getContenturl())
                .append("place", getPlace())
                .append("upnum", getUpnum())
                .append("downnum", getDownnum())
                .append("commentnum", getCommentnum())
                .append("forwardnum", getForwardnum())
                .append("realreadnum", getRealreadnum())
                .append("readnum", getReadnum())
                .append("informnum", getInformnum())
                .append("isspecial", getIsspecial())
                .append("visiblerange", getVisiblerange())
                .append("contentstate", getContentstate())
                .append("contenttype", getContenttype())
                .append("nocomment", getNocomment())
                .append("alumnionly", getAlumnionly())
                .append("voteid", getVoteid())
                .append("createtime", getCreatetime())
                .append("updatetime", getUpdatetime())
                .append("schoolIdStr", getSchoolIdStr())
                .toString();
    }
}





